<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格</title>
</head>
<body>
    <!--
        border  边框宽度
        width   表格宽度
        cellspacing  单元格间距
    -->
    <table border="1" width="400" cellspacing="0">
        <tr bgcolor="#eee">
            <th>编号</th>
            <th>姓名</th>
            <th>性别</th>
            <th>年龄</th>
        </tr>
        <tr>
            <td>1</td>
            <td>小明</td>
            <td>男</td>
            <td>21</td>
        </tr>
        <tr>
            <td>2</td>
            <td>小丽</td>
            <td>女</td>
            <td>23</td>
        </tr>
        <tr>
            <td>3</td>
            <td>小东</td>
            <td>男</td>
            <td>22</td>
        </tr>
        <tr>
            <td>4</td>
            <td>小红</td>
            <td>女</td>
            <td>21</td>
        </tr>
    </table>
</body>
</html>